// 下拉菜单项配置
export interface DropdownItem {
  label: string
  value: string | number
  icon?: string
  disabled?: boolean
  divided?: boolean
  children?: DropdownItem[]
}

// 下拉菜单配置选项
export interface DropdownOptions {
  items: DropdownItem[]
  trigger?: 'hover' | 'click' | 'contextmenu'
  placement?: 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end'
  size?: 'large' | 'default' | 'small'
  type?: 'primary' | 'success' | 'warning' | 'danger' | 'info'
  splitButton?: boolean
  disabled?: boolean
  showTimeout?: number
  hideTimeout?: number
  popperClass?: string
  popperStyle?: Record<string, any>
  teleported?: boolean
}

// 下拉菜单事件
export interface DropdownEvents {
  'update:modelValue': (value: boolean) => void
  'command-click': (command: string | number) => void
}
